<!DOCTYPE html>
<html xmlns:v-bind="http://www.w3.org/1999/xhtml">
<head>
    <title>消息列表</title>
    <#include "/header.html">
    <script type="text/javascript" charset="utf-8"
            src="${request.contextPath}/statics/ueditor/ueditor.config.js"></script>
    <script type="text/javascript" charset="utf-8"
            src="${request.contextPath}/statics/ueditor/ueditor.all.min.js"></script>
    <!--建议手动加在语言，避免在ie下有时因为加载语言失败导致编辑器加载失败-->
    <!--这里加载的语言文件会覆盖你在配置项目里添加的语言类型，比如你在配置项目里配置的是英文，这里加载的中文，那最后就是中文-->
    <script type="text/javascript" charset="utf-8"
            src="${request.contextPath}/statics/ueditor/lang/zh-cn/zh-cn.js"></script>
    <style>
        th {
            text-align: center;
        }

        a {
            color: #2691FF;
            text-decoration: underline;
        }

    </style>
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
            <form>

                <a class="btn btn-default" @click="query">查询</a>
                <!--<input type="reset" class="btn btn-default" @click="clean" value="清空" />-->
                <a class="btn btn-default" @click="insert">添加</a>
                <a class="btn btn-default" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
            </form>
            <!--<#if shiro.hasPermission("sys::save")>
            <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
            </#if>-->
            <!--<#if shiro.hasPermission("sys::update")>
            <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
            </#if>
            <#if shiro.hasPermission("sys:user:delete")>
            <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
            </#if>-->
        </div>
        <table id="jqGrid"></table>

        <div id="jqGridPager"></div>
    </div>


    <div v-show="showAdd" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal addnotice">
            <div class="form-group">
                <div class="col-sm-2 control-label">通知标题</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="notice.titles" name="titles"/>
                </div>
            </div>

            <div class="form-group">
                <div class="col-sm-2 control-label">通知封面</div>
                <div class="col-sm-10">
                    <input type="file" class="form-control" name="file"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">摘要</div>
                <div class="col-sm-10">
					<textarea v-model="notice.remark" name="remark" class="form-control">

					</textarea>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">通知内容</div>
                <div class="col-sm-10">
                    <div id="editor" type="text/plain" style="width:800px;height:300px;">

                    </div>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" @click="add" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>
    </div>


</div>


<script src="${request.contextPath}/statics/js/modules/notice/list.js?_${.now?long}"></script>
</body>
<img src="" width="720px" height="auto" style="display: none;" id="goodsImg">
<div id="noticeContent" style="display: none;width: 375px;height: 667px">

</div>
</html>